﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace ListItemEditor.UI
{
    public class DataGridViewTextBoxIconColumn : DataGridViewTextBoxColumn
    {
        public interface IIconProvider
        {
            int GetIconIndex(DataGridViewCell cell, int rowIndex);
            void OnIconMouseClick(DataGridViewCell cell, int rowIndex);
        }

        public DataGridViewTextBoxIconColumn()
        {
            DataGridViewTextBoxIconCell cell = new DataGridViewTextBoxIconCell();
            this.CellTemplate = cell;
        }

        public List<Bitmap> Bitmaps { get; set; }
        public IIconProvider IconProvider { get; set; }
    }
}
